from core.room import Room
from core.basehandler import BaseHandler

class Start(Room):
    
    def __init__(self, room_id):
        Room.__init__(self, room_id)    # do basic initialization for every room
    
    # return description of room.
    def get_description(self):
        return '''
        You've jumped from the second floor, using your grappling hook to land on the globe. 
        The globe becomes dislodged from its foundation, and starts rolling towards the exit. 
        Your ride on top of the globe, crushing zombies underneath you and smash your way to freedom.
        Victory! 
         '''
    
    # return image of room
    def get_image(self):
        return 'EntryScreen.jpg'

class StartHandler(BaseHandler):
    
    # override default template to omit the inventory and actions
    def get_template(self):
        return 'start.html'
    
    # return class to use to create a new instance of this room
    def get_room_class(self):
        return Start

# define actions for this room
